<script>
        function open_page(file){

        var sFeatures = ""+
                " channelmode = no,"+
                " directories = no,"+
                " fullscreen = no,"+
                " height = 430"+
                " left = "+((screen.width/2)-250)+","+
                " location = no,"+
                " menubar = no,"+
                " resizable = no,"+
                " scrollbars = yes,"+
                " status = no,"+
                " titlebar = no,"+
                " toolbar = no,"+
                " top = "+((screen.height/2)-250)+","+
                " width =  570";




        if (file){
                 win_pop =  window.open(file,"", sFeatures,"");

        }

}
</script>
<br>
<form method='post' action='<?
			$params[action]="last_reseller_sales";$params[sid]=$sid;$url="$baseURL/$webDIR/?".encode_params($params);echo $url;	
				?>'>
<table class="bTable" cellspacing=0>
	<tr>
		<th>reseller</th>
		<th>date</th>
		<th>transaction number</th>
		<th>sale data</th>
		<th>~</th>
	</tr>
	<tr>
		<td><input type='text' name=s[reseller]></td>
		<td><input type='text' name=s[date]></td>
		<td><input type='text' name=s[order_number]></td>
		<td><input type='text' name=s[data]></td>
		<td><input type='submit' value='Search'></td>
	</tr>
</table>
</form>
<table class="bTable" cellspacing=0>
	<tr>
		<th>reseller</th>
		<th>type</th>
		<th>data</th>
		<th>price</th>
		<th>purchase date</th>
		<th>&nbsp;</th>
		<th>transaction number</th>
	<tr>


<?
$list=get_last_reseller_sales($s);

if(!$list) $list="<tr><td colspan=10>no stat available</td></tr>";

echo $list;
?>

</table>
